package com.bl.weilan.dao.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

@Entity
@Data
@Table(name = "trade_chart_detail")
@ApiModel(value = "TradeChartDetailEntity", description = "行业图标详情")
@DynamicInsert
@DynamicUpdate
public class TradeChartDetailEntity {
    @Id
    @ApiModelProperty(value = "id")
    private String id;

    @ApiModelProperty(value = "行业id")
    @Column(name = "chart_id")
    private String chartId;

    @ApiModelProperty(value = "年份")
    private int year;

    @ApiModelProperty(value = "值")
    private float value;

    @ApiModelProperty(value = "")
    private String name;


    @ApiModelProperty(value = "更新时间")
    @Column(name = "update_time")
    private Date updateTime;
}
